package zuoye.ershouche.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import zuoye.ershouche.entity.CarInfo;
import zuoye.ershouche.entity.dto.CarInfoDTO;
import zuoye.ershouche.entity.dto.CarInfoUpdateDTO;


@Mapper
public interface CarInfoMapper {


    int insertCarInfo(CarInfo carInfo);

    @Delete("delete from car_info where id = #{id}")
    int deleteCarInfoById(Integer id);

    @Select("select * from car_info where id = #{id}")
    CarInfo getCarInfoById(Integer id);

    int updateCarInfo(CarInfoUpdateDTO carInfoUpdateDTO);
}
